# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-widgets
pkgver=6.0.14
pkgrel=1
pkgdesc='Desktop widgets service/implementation for DDE'
arch=('loong64' 'x86_64')
url="https://github.com/linuxdeepin/dde-widgets"
license=('GPL3')
depends=('qt5-base' 'dtkcore' 'dtkgui' 'dtkwidget' 'glibc' 'gcc-libs')
makedepends=('cmake' 'ninja' 'gtest' 'qt5-tools')
groups=('deepin')
source=("https://github.com/linuxdeepin/dde-widgets/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('d9f6ab3d3039f653ab738e73f6bfef6519c3f94d56c4bbabdbf5b0f928f6c3eefce83761b6cf6fbd666ce19c357c1d32e197e807199034b050d631d6be3ff272')

build() {
  cd dde-widgets-$pkgver
  cmake . -GNinja
  ninja
}

package() {
  cd dde-widgets-$pkgver
  DESTDIR="$pkgdir" ninja install
}
